# 导包
import requests
# 测试数据
url = "http://www.litemall360.com:8080/wx/auth/login"
d = {
    "username": "user123", "password": "user123"
}

# 发送请求
r = requests.post(url, json=d)

# 打印返回码和文本
print(r.status_code)
print(r.text)

# 提取errno和token
print(r.json()["errno"])
print(r.json()["data"]["token"])
